import request from '@/utils/request'

// 查询部门列表
export function listMovie(query) {
  return request({
    url: '/cinema/movie/list',
    method: 'get',
    params: query
  })
}


// 查询部门详细
export function getMovie(movieId) {
  return request({
    url: '/cinema/movie/' + movieId,
    method: 'get'
  })
}



// 新增部门
export function addMovie(data) {
  return request({
    url: '/cinema/movie',
    method: 'post',
    data: data
  })
}

// 修改部门
export function updateMovie(data) {
  return request({
    url: '/cinema/movie',
    method: 'put',
    data: data
  })
}

// 删除部门
export function delMovies(movieId) {
  return request({
    url: '/cinema/movie/' + movieId,
    method: 'delete'
  })
}
